'use strict';

const log = require('npmlog')

// hjy-cli --debug
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'// 判断debug模式
log.heading = 'hjy'// 修改前缀

// 添加自定义命令,调用：log.success('test', 'success...')
// fg字体颜色
log.addLevel('success', 2000, { fg: 'green', bold: true })

module.exports = log
